<%=link_to("Categories", categories_path)%>
<% @category.breadCrumbLinks([]).each do | crumb | %>
<%=link_to(crumb[:name], category_path(crumb[:id]))%>
<%end%>
<br>
<%= link_to "new category", new_category_path(:parent_id => @category.id) %>
 
<div class="sideMenu">
<table>
<% @category.children.each do |child| %>
<tr><td><%= link_to "#{child.name}(#{child.vidCount})", category_path(child) %></td></tr>
<% end %>
</table>
<table>
<% @videos.each do |video| %>
<tr><td><%= link_to video.name, video_path(video) %></tr></td>
<% end %>
</table>
</div>

